#!/bin/bash


#if [ $# -gt 1 ];
#then
#       echo 'USAGE: addon/test-client.sh -url tcp://localhost:6666'
#       exit 1
#fi

base_dir=$(dirname $0)/..
echo 'base_dir '$base_dir

for file in $base_dir/dist/*.jar;
do
  CLASSPATH=$CLASSPATH:$file
done

for file in $base_dir/lib/*.jar;
do
  CLASSPATH=$CLASSPATH:$file
done

for file in $base_dir/addon/*.jar;
do
  CLASSPATH=$CLASSPATH:$file
done

CLASSPATH=$CLASSPATH:$base_dir/dist/resources

if [ -z "$VOLD_OPTS" ]; then
  VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
fi

java -Dlog4j.configuration=addon/log4j.xml $VOLD_OPTS -cp $CLASSPATH voldemort.store.cachestore.RunPacing $@
